package com.amoyhong.hongWhether.control;

import android.content.Context;
import android.support.annotation.Nullable;

/**
 * Created by Administrator on 2016/1/2.
 */
public class DataManager {

    Context context;
    private static DataManager dataManager;

    private DataManager(Context context) {
        this.context = context;
    }

    @Nullable
    public static DataManager getManager(){
        if (dataManager==null){
            return null;
        }

        return dataManager;
    }

    public static DataManager getManager(Context context){
        if (dataManager==null){
            dataManager = new DataManager(context);
        }

        return dataManager;
    }


}
